#ifndef PointView_H
#define PointView_H

#include "viewobject.h"
#include <qdom.h>

typedef struct PointViewParam
{
    QString         m_resPassPath;
    QString         m_resNormalPath;
    QString         m_resFuturePath;
    QString         m_resSkipPath;
    QString         m_resCrossPath;
    QString         m_resCurrentPath;
    QString         m_resNextPath;//保留未用
    PointViewParam()
    {
        m_resPassPath = "";
        m_resNormalPath = "";
        m_resFuturePath = "";
        m_resCrossPath = "";
        m_resSkipPath = "";
        m_resCurrentPath = "";
        m_resNextPath = "";
    }
}PointViewParam;


class PointView : public ViewObject
{
    Q_OBJECT
public:
    static int m_id;
    Q_INVOKABLE explicit PointView(QWidget *parent = 0);
    ~PointView();

    void ShowObject();

    void GetAttribute(std::string&);

    void SetAttribute(std::string);

    void ParseXML(QDomElement* );

    void PacketXML(QDomElement*);

    void LoadStationPic(int, QString);

    void SetOffset(int offset);

private:
    PointViewParam                   *m_paramPointView;
};

#endif // PointView_H
